<template>
  <div>
    <article-list :url="'/getArticle'">
        <banner :pics="pics" :speed="'2000'"></banner>
    </article-list>
  </div>
</template>
<script type="text/javascript">
  var banner = require("../../components/mobile/banner.vue");
  var article = require("../../components/mobile/article-list.vue");
  export default{
    data(){
      return {
        pics:[]
      }
    },
    components:{
      banner:banner,
      articleList:article,
    },
    route:{
      data(transition){
        var th = this;
        //获取轮播图
        this.$http.get("/getBanner" , function(res){
          transition.next({pics:res.banner})
        },"JSON");
      }
    }
  }
</script>
